package part06_装饰者模式;

/** 1-饮料的抽象类
 * @ClassName: Drink
 * @Author: AllenSun
 * @Date: 2019/12/10 22:41
 */
public abstract class Drink {
    private String description;//描述
    private float price=0.0f;

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    //抽象方法，交给子类去实现
    public abstract float cost();
}
